﻿@using InfoTech.VinhSon.Bussiness
@model IEnumerable<Article>
@{
    if (Model.Any())
    {
    <style type="text/css">
        .quick-link
        {
            margin-bottom: 10px;
            border: 1px solid #ccc;
            background-color: white;
        }
        .quick-link a
        {
            line-height: 0;
            display: block;
            padding: 5px;
        }
        .quick-link .line-seperator
        {
            border-bottom: 1px solid #ccc;
        }
    </style>
    <div class="quick-link shadow-bottom">
        @{
        bool first = true;
        foreach (Article article in Model)
        {
            if (first)
            {
                first = false;
            }
            else
            {
            <div class="line-seperator">
            </div>
            }
            <a target="_blank" href="@article.GetUrl()">
                <img width="240" src="/Resource/Article/@article.Thumbnail"/>
            </a>
        }
        }
    </div>
    }
}
